import request from '@/utils/request'
let serviceName="/order-service"
export function add(cart){
    return request({url: serviceName + "/cart/insert", method: "post",data:cart});
}
export function getGoodsByUser(userId){
    return request({url: serviceName + "/cart/getGoodsByUser", method: "post",params:{"userId":userId}});
}
export function deleteByUG(userId,goodsId){
    return request({url: serviceName + "/cart/deleteByUG", method: "post",params:{"userId":userId,"goodsId":goodsId}});
}